﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"                      
           xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" 
           x:Class="SomethingSpacial.Views.MixItUp.PrintBadgeMapPage"            
           Width="800" Height="473"
		   Style="{StaticResource TransparentChildWindowStyle}" 
		   x:Name="PrintBadgeMapPageChildWindow"
		   Title="Event Badge Print">  		   

    <Canvas x:Name="LayoutRoot" Margin="0,5,0,-5">


        <controls:TabControl x:Name="tabControlBadge" HorizontalAlignment="Left" Width="774" Margin="0" Height="430" Background="{x:Null}">
            <controls:TabItem x:Name="tabItemBadge" Header="Badge Information">
                <Grid x:Name="gridBarcode" Margin="0,0,-1,19" d:LayoutOverrides="Height">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.236*"/>
                        <ColumnDefinition Width="0.481*"/>
                        <ColumnDefinition Width="0.283*"/>
                    </Grid.ColumnDefinitions>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="85"/>
                        <RowDefinition Height="25"/>
                        <RowDefinition Height="0.783*"/>
                        <RowDefinition Height="0.217*"/>
                        <!--<RowDefinition Height="0*"/>-->
                    </Grid.RowDefinitions>
                    <TextBlock x:Name="textBlockHeaderAttendeeName" TextWrapping="Wrap" Text="Attendee Name:" Grid.Row="0" Grid.Column="0" Foreground="White"/>
                    <TextBlock x:Name="textBlockAttendeeName" Text="" TextWrapping="Wrap" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="1" Margin="0,0,7,0" Foreground="White"/>

                    <TextBlock x:Name="textBlockHeaderMeetingTitle" TextWrapping="Wrap" Text="Meeting Title:" Grid.Row="1" Grid.Column="0" Grid.RowSpan="1" Foreground="White"/>
                    <TextBlock x:Name="textBlockMeetingTitle" Text="{Binding EVT_Name}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="1" Margin="0,0,7,0" Grid.RowSpan="1" Foreground="White"/>

                    <TextBlock x:Name="textBlockHeaderMeetingTime" TextWrapping="Wrap" Text="Meeting Time:" Grid.Column="0" Grid.Row="2" Foreground="White"/>
                    <TextBlock x:Name="textBlockMeetingTime" FontSize="12" Text="{Binding EVT_Start_Date}"
    					TextWrapping="Wrap" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Margin="0,0,7,0" Foreground="White"/>

                    <TextBlock x:Name="textBlockHeaderMeetingDescription" TextWrapping="Wrap" Text="Meeting Description:" Grid.Row="3" Grid.Column="0" Foreground="White" Margin="0,0,0,25"/>
                    <TextBlock x:Name="textBlockMeetingDescription" Text="{Binding EVT_Description}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="1" Margin="0,0,7,8" Foreground="White" Grid.RowSpan="2"/>

                    <TextBlock x:Name="textBlockAttendeeId" FontSize="50" Grid.RowSpan="1" FontFamily="/SomethingSpacial;Component/Fonts/Fonts.zip#Barcode" RenderTransformOrigin="0.46,2.182" Height="55" Margin="8,19,-28,0" VerticalAlignment="Top" Width="200" Grid.Row="5"/>

                    <StackPanel x:Name="stackPanelVideoButtons" Width="215" Orientation="Horizontal" 
    					Grid.Row="4" Grid.Column="2" HorizontalAlignment="Left" Grid.RowSpan="1" Height="25" d:LayoutOverrides="VerticalAlignment" Margin="4,0,0,0" >
                        <Button x:Name="StartCamBtn" Content="Take Snapshot" Height="20" Width="100" Margin="5,0,0,0"/>
                        <Button  x:Name="UploadPictureBtn" Content="Upload" Height="20" Width="100" Margin="5,0,0,0"/>
                    </StackPanel>

                    <Rectangle x:Name="WebcamRectangle" Grid.Column="2" Fill="White" Stroke="Black" Grid.RowSpan="5" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="140" Height="140"/>

                    <Button x:Name="btnPrintPreview" Content="Print Preview" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="1"
    					HorizontalAlignment="Left" Height="20" Width="100" Margin="18,0,0,0" VerticalAlignment="Bottom" d:LayoutOverrides="Height"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem x:Name="tabItemBingMap" Header="Map/Directions">
                <Grid x:Name="gridMap">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.5*"/>
                        <ColumnDefinition Width="0.5*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.102*"/>
                        <RowDefinition Height="0.102*"/>
                        <RowDefinition Height="0.743*"/>
                        <RowDefinition Height="0.053*"/>
                    </Grid.RowDefinitions>
                    <m:Map 
				           x:Name="BingMap" Grid.Row="2" Grid.ColumnSpan="1" 
                        Center="35, -110" 
                        ZoomLevel="4"  
                        CredentialsProvider="AlPviMwn0YYUePvYtdFmfpfULbjjL_MeTT-igDBLWUypmeVLrPUubSxyuCljHjUl"/>
                    <TextBlock x:Name="textBlockFromAddress" HorizontalAlignment="Left" Margin="8,5,0,11" TextWrapping="Wrap" Text="From" Width="61" VerticalAlignment="Center" Foreground="White"/>
                    <TextBox x:Name="textBoxFromAddress" Margin="50,0,0,0" Text="FromAddress" HorizontalAlignment="Left" VerticalAlignment="Center" Width="600" Grid.ColumnSpan="2"/>
                    <Button x:Name="AddressMapButton" Width="100" HorizontalAlignment="Right" Content="Show Address" Grid.Row="0" Grid.Column="1" Height="25"/>
                    <TextBox x:Name="textBoxToAddress" HorizontalAlignment="Left" Margin="50,0,0,0" Text="ToAddress" VerticalAlignment="Center" Width="600" Grid.Row="1" Grid.ColumnSpan="2"/>
                    <TextBlock x:Name="textBlockToAddress" HorizontalAlignment="Left" Margin="8,5,0,11" TextWrapping="Wrap" Text="To" VerticalAlignment="Center" Width="61" Grid.Row="1" Foreground="White"/>
                    <!-- CredentialsProvider="AlPviMwn0YYUePvYtdFmfpfULbjjL_MeTT-igDBLWUypmeVLrPUubSxyuCljHjUl" -->
                    <TextBlock x:Name="DirectionsTextBlock" Text="Directions" Width="300" Grid.Column="2" Grid.Row="2" 
                            TextWrapping="Wrap" Height="300" Foreground="White"/>
                </Grid>
            </controls:TabItem>

        </controls:TabControl>
        <Canvas x:Name="printGridCanvas" Height="364" Width="763" Background="White" Canvas.Left="8" Canvas.Top="50" Visibility="Collapsed">
        	<Grid x:Name="printGrid" Background="White" Height="311" Width="745" d:LayoutOverrides="Height" Canvas.Left="18" Canvas.Top="8">
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="0.055*"/>
        			<ColumnDefinition Width="0.187*"/>
        			<ColumnDefinition Width="0.493*"/>
        			<ColumnDefinition Width="0.266*"/>
        		</Grid.ColumnDefinitions>

        		<Grid.RowDefinitions>
        			<RowDefinition Height="21"/>
        			<RowDefinition Height="28"/>
        			<RowDefinition Height="29"/>
        			<RowDefinition Height="29"/>
        			<RowDefinition Height="29"/>
        			<RowDefinition Height="90"/>
        			<RowDefinition/>
        			<!--<RowDefinition Height="0*"/>-->
        		</Grid.RowDefinitions>
        		<TextBlock x:Name="textBlockHeaderAttendeeNamePrint_Copy" TextWrapping="Wrap" Text="EVENT ATTENDEE BADGE" Grid.Row="5" Grid.Column="0" Foreground="Black" Grid.ColumnSpan="2" RenderTransformOrigin="0.5,0.5" FontFamily="/SomethingSpacial;Component/Fonts/Fonts.zip#35 Helvetica Thin" Margin="-112,5,32,0" UseLayoutRounding="False" d:LayoutRounding="Auto" FontSize="21.333" TextAlignment="Right" Height="25" VerticalAlignment="Top">
        			<TextBlock.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform/>
        					<SkewTransform/>
        					<RotateTransform Angle="-90"/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</TextBlock.RenderTransform>
        		</TextBlock>
        		<TextBlock x:Name="textBlockHeaderAttendeeNamePrint" TextWrapping="Wrap" Text="Attendee Name:" Grid.Row="1" Grid.Column="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,3,8,0" Grid.RowSpan="1"/>
        		<TextBlock x:Name="textBlockAttendeeNamePrint" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.ColumnSpan="1" Margin="8,3,-1,0" Foreground="Black" Grid.RowSpan="1" Grid.Row="1"/>

        		<TextBlock x:Name="textBlockHeaderMeetingTitlePrint" TextWrapping="Wrap" Text="Meeting Title:" Grid.Row="2" Grid.Column="1" Grid.RowSpan="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,4,8,0"/>
        		<TextBlock x:Name="textBlockMeetingTitlePrint" Text="{Binding EVT_Name}" TextWrapping="Wrap" Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="1" Margin="4,3,3,1" Grid.RowSpan="1" Foreground="Black"/>

        		<TextBlock x:Name="textBlockHeaderMeetingTimePrint" TextWrapping="Wrap" Text="Meeting Time:" Grid.Column="1" Grid.Row="3" Foreground="Black" Grid.ColumnSpan="1" Margin="8,4,8,0"/>
        		<TextBlock x:Name="textBlockMeetingTimePrint" FontSize="12" Text="{Binding EVT_Start_Date}"
        			TextWrapping="Wrap" Grid.Column="2" Grid.Row="3" Grid.ColumnSpan="1" Margin="7,4,0,0" Foreground="Black"/>

        		<TextBlock x:Name="textBlockHeaderMeetingDescriptionPrint" TextWrapping="Wrap" Text="Meeting Description:" Grid.Row="4" Grid.Column="1" Foreground="Black" Grid.ColumnSpan="1" Margin="8,5,8,0"/>
        		<TextBlock x:Name="textBlockMeetingDescriptionPrint" Text="{Binding EVT_Description}" TextWrapping="Wrap" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2" Margin="8,14,8,11" Foreground="Black" Grid.RowSpan="1"/>

        		<TextBlock x:Name="textBlockAttendeeIdPrint" FontSize="50" Grid.RowSpan="1" FontFamily="/SomethingSpacial;Component/Fonts/Fonts.zip#Barcode" RenderTransformOrigin="0.46,2.182" Height="55" Margin="-41,12,39,0" VerticalAlignment="Top" Width="200" Grid.Row="6" Foreground="Black" Grid.ColumnSpan="1" Grid.Column="3"/>

        		<Rectangle x:Name="imageRectanglePrint" Grid.Column="3" Fill="White" Stroke="Black" Grid.RowSpan="4" Margin="19,8,39,-33" Grid.Row="1"/>
        		<Path Data="M33,0 L33,279.11469" Fill="White" HorizontalAlignment="Right" Margin="0,0,7,30.885" Grid.RowSpan="7" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1" StrokeThickness="5"/>

        	</Grid>

        	<Button x:Name="btnPrint" Content="Print Badge"
        		HorizontalAlignment="Left" Height="20" Width="100" VerticalAlignment="Bottom" d:LayoutOverrides="Height" Canvas.Left="18" Canvas.Top="323"/>
        	<Button x:Name="btnPrintCancel" Content="Cancel"
        		HorizontalAlignment="Left" Height="20" Width="100" VerticalAlignment="Bottom" Canvas.Left="128" Canvas.Top="323" d:LayoutOverrides="Height"/>
        </Canvas>


        <!--<Canvas x:Name="InfoCanvas" Canvas.Left="562" Width="220" Height="301">
        <Image x:Name="Robot2" Height="121" Source="/SomethingSpacial;Component/Images/Rooms/Robot2.jpg" Stretch="Fill" Width="80" Canvas.Left="134" Canvas.Top="123"/>
			<Path x:Name="pathSpeech1" Fill="#FF98B8C6" Stretch="Fill" Stroke="#FF000000" Data="M0.5,20.5 C0.5,9.4543047 9.4543047,0.5 20.5,0.5 L110.5,0.5 C121.54569,0.5 130.5,9.4543047 130.5,20.5 L130.5,61.5 C130.5,72.545692 121.54569,81.5 110.5,81.5 L65,81.5 L31,113.48873 L45,81.5 L20.5,81.5 C9.4543047,81.5 0.5,72.545692 0.5,61.5 z" UseLayoutRounding="False" Width="160" Height="135" Canvas.Left="37.5" Canvas.Top="-0.5" RenderTransformOrigin="0.5,0.5">
				<Path.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1" ScaleX="-1"/>
						<SkewTransform AngleY="0" AngleX="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform/>
					</TransformGroup>
				</Path.RenderTransform>
			</Path>
			<TextBlock x:Name="textSpeech1" FontSize="11" TextWrapping="Wrap" Text="Print your boarding pass to show directions, make it easy to sign in and for 6 free raffle tickets" Height="78" Width="141" Canvas.Left="48" Canvas.Top="10"/>		
		</Canvas> -->

    </Canvas>

</controls:ChildWindow>